<?php
if (!class_exists('Decorator')) {
	include 'decorator.php';
}
class SleepDecorator extends Decorator{
	public function attack(){
		echo '有睡觉功能|';
		$this->_general->attack();
	}
	
	public function sleep(){
		echo '睡觉<br/>';
	}
}